import request from '@/utils/request'

// 查询建材生产运输阶段列表
export function listProductionPhase(query) {
  return request({
    url: '/business/productionPhase/list',
    method: 'get',
    params: query
  })
}

// 查询建材生产运输阶段详细
export function getProductionPhase(productionId) {
  return request({
    url: '/business/productionPhase/' + productionId,
    method: 'get'
  })
}

// 新增建材生产运输阶段
export function addProductionPhase(data) {
  return request({
    url: '/business/productionPhase',
    method: 'post',
    data: data
  })
}

// 修改建材生产运输阶段
export function updateProductionPhase(productionId, data) {
  return request({
    url: '/business/productionPhase/' + productionId,
    method: 'put',
    data: data
  })
}

// 删除建材生产运输阶段
export function delProductionPhase(productionId) {
  return request({
    url: '/business/productionPhase/' + productionId,
    method: 'delete'
  })
}
